package com.tancire.net.service;

import java.util.List;

import com.tancire.net.domain.CrmCompanyWithdraw;

/**
 * 客户提现记录Service接口
 *
 * @author chencho
 * @date 2023-12-25
 */
public interface ICrmCompanyWithdrawService {
    /**
     * 查询客户提现记录
     *
     * @param id 客户提现记录主键
     * @return 客户提现记录
     */
    CrmCompanyWithdraw selectCrmCompanyWithdrawById(Long id);

    /**
     * 查询客户提现记录列表
     *
     * @param crmCompanyWithdraw 客户提现记录
     * @return 客户提现记录集合
     */
    List<CrmCompanyWithdraw> selectCrmCompanyWithdrawList(CrmCompanyWithdraw crmCompanyWithdraw);

    /**
     * 新增客户提现记录
     *
     * @param crmCompanyWithdraw 客户提现记录
     * @return 结果
     */
    int insertCrmCompanyWithdraw(CrmCompanyWithdraw crmCompanyWithdraw);

    /**
     * 修改客户提现记录
     *
     * @param crmCompanyWithdraw 客户提现记录
     * @return 结果
     */
    int updateCrmCompanyWithdraw(CrmCompanyWithdraw crmCompanyWithdraw);

    /**
     * 批量删除客户提现记录
     *
     * @param ids 需要删除的客户提现记录主键集合
     * @return 结果
     */
    int deleteCrmCompanyWithdrawByIds(Long[] ids);

    /**
     * 删除客户提现记录信息
     *
     * @param id 客户提现记录主键
     * @return 结果
     */
    int deleteCrmCompanyWithdrawById(Long id);

    /**
     * 申请提现
     *
     * @param crmCompanyWithdraw
     * @return
     */
    int applyWithdraw(CrmCompanyWithdraw crmCompanyWithdraw);

    /**
     * 审批通过逻辑
     *
     * @param id
     */
    void approvePass(Long id);

    /**
     * 审批拒绝逻辑
     *
     * @param id
     */
    void approveRefuse(Long id);

    /**
     * 标记打款
     *
     * @param crmCompanyWithdraw
     * @return
     */
    int payed(CrmCompanyWithdraw crmCompanyWithdraw);
}
